﻿using SqlSugar;
using static DataModels.Enums.GeneralEnum;

namespace DataModels.Entities.OfflineStore
{
    [SugarTable]
    public class OfflineStoreStore
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid UUID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 店铺名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 店铺描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 营业时间
        /// </summary>
        public string BusinessHours { get;set; } = "9:00-18:00"; // 营业时间，默认值为9:00-18:00

        /// <summary>
        /// 店铺Logo URL
        /// </summary>
        public string LogoUrl { get; set; }

        /// <summary>
        /// 店铺地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public decimal Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public decimal Latitude { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        public string PhoneNumber { get; set; }

        /// <summary>
        /// 营业执照
        /// </summary>
        public string BusinessLicenseUrl { get; set; }

        /// <summary>
        /// 是否删除   
        /// </summary>
        public Status IsDeleted { get; set; } = Status.Disable;
        public DateTime CreateTime { get; set; } = DateTime.Now;
        public Guid CreateUserUUID { get; set; }
        public DateTime? UpdateTime { get; set; }
        public Guid? UpdateUserUUID { get; set; }
    }
}
